import React from 'react'

import useCustomhook from './useCustomhook'
import useCustomhook2 from './useCustomhook2'

export default function App() {
  let { count, add } = useCustomhook(0)
  let { title, change } = useCustomhook2('aaa')

  return (
    <div>
      <h1>{title}</h1>
      {count}
      <button onClick={() => add(10)}>click</button>
      <button onClick={() => change('hello')}>change title</button>
    </div>
  )
}
